<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>user</title>
</head>
<body>
<div>
    <a href="./add">增添</a>
    <table>
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>操作</th>

        </tr>

        {{each list}}
        <tr>
            <th>{{$value.username}}</th>
            <th>{{$value.age}}</th>
            <th>{{$value.sex}}</th>
            <th><a href="/edit?id={{@$value._id}}">编辑</a>  <a href="/doDel?id={{@$value._id}}">删除</a></th>

        </tr>
        {{/each}}
    </table>
</div>

</body>
</html>